﻿//
// Created by Administrator on 2020/8/21.
//

#ifndef EXAMPLE_CPP_STACK_H
#define EXAMPLE_CPP_STACK_H

typedef long Item;

class Stack {
private:
    enum Size {
        MAX_SIZE = 10
    };
    Item itemArr[MAX_SIZE];
    int index;
public:
    void push(Item item);

    Item pop();

    bool isEmpty();

    bool isFull();

    Stack();

    Stack(int maxSize);
};


#endif //EXAMPLE_CPP_STACK_H
